package com.sjh.commons.mybatis.config;

import com.sjh.commons.mybatis.mate.MybatisMateDataHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 功能描述
 *
 * @author songjiahao
 * @date 2023/04/07  8:36
 */
@Configuration
@MapperScan("com.sjh.**.dao")
@EnableTransactionManagement
public class MybatisAutoConfiguration {
    @Bean
    public MybatisMateDataHandler getMybatisMateDataHandler(){
        return new MybatisMateDataHandler();
    }
}
